home *** CD-ROM | disk | FTP | other *** search
/ FishMarket 1.0 / FishMarket v1.0.iso / fishies / 401-425 / disk_415 / cbbs / cbbs.lzh / docs / vt100.doc < prev   
Text File  |  1989-04-18  |  24KB  |  642 lines

  1. This is the documentation file for the VT100 terminal emulator originally
  2. by Dave Wecker.  Version 2.7 is by Tony Sumrall.  I can be reached  on
  3. USENET => acs@amdahl.com
  4.  
  5. Dave can be reached via:
  6.  
  7.    Dave Wecker at   ENET:   COOKIE::WECKER
  8.          ARPA:   wecker%cookie.dec.com@decwrl.dec.com
  9.          USENET:   {decvax|decwrl}!cookie.dec.com!wecker
  10.          SNAIL:   Dave Wecker
  11.             115 Palm Springs Drive
  12.             Colorado Springs, CO  80908
  13.  
  14. Note that Dave had NOTHING to do with this release.  Don't bother him with
  15. problem in my code.
  16.  
  17.  
  18. MANY pieces of code/suggestions have been sent in..
  19.  
  20.    thanks to all!
  21.  
  22. Program startup:
  23. ----------------
  24.    1> vt100 [-i | +i initfile] [ scriptfile ... ]
  25.  
  26.                 - -i option means don't look for an init file; +i means
  27.                   look for an init file of this name.  The search for the
  28.                   init file will be the current directory then S:.  Of
  29.                   course you can always override this by saying C:file if
  30.                   you like.  The format for the init file is described
  31.                   later in this document.
  32.  
  33.       - The init file controls the setting of initial defaults
  34.         and screen and macro definitions.
  35.  
  36.       - If none of the files (listed above) are found, the
  37.         built-in defaults (defined in VT100.C as variables,
  38.         beginning with "p_") are used.
  39.  
  40.       - All commands are either menu or script based. Scripts
  41.         are described below.
  42.  
  43. Menus
  44. (Commands in parenthesis are default keyboard bindings: Right-Amiga-chr):
  45. -----------------------------------------------------------------------
  46. File               - file transfers
  47.    Ascii Capture      - Begin/end a script of the current session
  48.    Ascii Send      - Type a file to the host
  49.    Xmodem Receive   (A-V)   - Receive a file using XMODEM protocol
  50.    Xmodem Send   (A-^)   - Send    a file using XMODEM protocol
  51.    Kermit Get   (A-G)   - Receive files from a host KERMIT SERVER
  52.    Kermit Receive   (A-R)   - Receive files from a host KERMIT
  53.    Kermit Send   (A-S)   - Send    files to   a host KERMIT [SERVER]
  54.    Kermit Bye   (A-B)   - Terminate a host KERMIT SERVER
  55. Comm Setup         - Setup communications
  56.    Baud Rate      - Set the terminal baud rate
  57.       300
  58.       1200   (A-L)
  59.       2400   (A-H)
  60.       4800
  61.       9600
  62.    Parity         - Type of parity
  63.       NONE    (A-X)
  64.       MARK
  65.       SPACE
  66.       EVEN   (A-E)
  67.       ODD   (A-O)
  68.    Xfer Mode
  69.       Image   (A-I)   - Send files verbatim (for UNIX hosts or
  70.               binary files)
  71.       Text   (A-T)   - Send CR LF as line terminator and strip
  72.               CR on received files (VMS text).
  73.       Convert      - Should KERMIT convert fnames to lower case
  74. Script            - Script commands
  75.    Execute Macro      - Start up an asynchronous script file
  76.    Abort Execution      - Terminate a script file
  77. Utility            - Utility commands
  78.    Send Break   (A-.)   - send a break to the host
  79.    Hang Up         - close line (not implemented yet)
  80.    Change Dir   (A-D)   - change the local directory (for transfers)
  81.    Clear Scrn      - clear the screen (initial state)
  82.    Echo         - turn on/off half duplex mode
  83.    Wrap      (A-W)   - turn on/off long line wrapping mode
  84.    Num Key      (A-K)   - turn on/off numeric keypad mode
  85.    App Cur      (A-C)   - turn on/off application cursor mode
  86.    BS<->DEL   (A-Z)   - swap backspace and delete keys
  87.  
  88. Keypad mapping (in application keypad mode):
  89. --------------------------------------------
  90.  
  91.       AMIGA      VT100      comments
  92.       -------      -------      ---------------------------
  93.       0-9   ==   0-9
  94.       .   ==   .
  95.       ENTER   ==   ENTER      (basically, flip the bottom
  96.       -   ==   ,       2 keys up to get a VT100)
  97.       HELP   ==   -      (only free key around)
  98.       f1-f4   ==   PF1-PF4      (or any rebinding you do)
  99.       arrows   ==   arrows
  100.  
  101. Note:   Right AMIGA key in conjunction with a period (".")
  102.    will send a break to the host.
  103.  
  104.    CTRL in conjunction with an at-sign ("@") a two ("2") or a
  105.    space (" ") will send a NULL to the host.
  106.  
  107.    CTRL in conjunction with a six  ("6") will send a CTRL-^
  108.    CTRL in conjunction with a dash ("-") or question mark ("?")
  109.       will send a CTRL-_ to the host.
  110.  
  111. Multi file Xfers:
  112. -----------------
  113. The VT100 emulator supports multiple file transfers. This is
  114. specified by using a comma (",") between file names when using XMODEM
  115. or KERMIT. (NOTE: host XMODEM's normally CANNOT support multiple file
  116. transfers).
  117.  
  118. When specifying a file name to recieve by default the directory path
  119. is stripped off of the filename when sent to the host but is kept for the
  120. local file spec. eg:
  121.  
  122.         receive file: ram:file.txt,df1:newfile.bin,$
  123.  
  124. will ask the server for file.txt and put it in ram:, and get
  125. newfile.bin and put it on df1: (see explanation of "$" below). If you
  126. do a single file transfer you will get another prompt for the remote
  127. name e.g.:
  128.  
  129.         receive file: ram:file.txt
  130.         remote file name [file.txt]:  userdisk1:wantfile.txt
  131.  
  132. The same rules apply to sending multiple files therefore if you are
  133. doing multi file transfers make sure the host server is connected to
  134. the desired directory.
  135.  
  136. In addition KERMIT supports wildcards:
  137.     * = any number of characters
  138.     ? = any single character
  139. Examples:
  140.    send:   *.c,*.h,*.doc
  141.    get:   *.c,*.h,$
  142.  
  143. Note that in this release, wilcarded files may be sent to a KERMIT that is
  144. *not* in server mode (e.g. you can say "RECEIVE" to the host KERMIT and
  145. send *.c files successfully).
  146.  
  147. KERMIT receive is now smart enough to use the host filename so no
  148. filename needs to be specified on the AMIGA's side (see the CONVERT option).
  149.  
  150. Initialization and Script file operation:
  151. -----------------------------------------
  152. An initialization file (as described in the "Program Startup" section)
  153. may contain any of the commands shown below that have the word INIT in
  154. their description below. Commands that are available from scripts have
  155. the word SCRIPT in the descriptions below. All commands may be abbreviated
  156. to 3 letters and are case insensitive.
  157.  
  158. The script file can be invoked by selecting 'execute file' from the
  159. script menu. At any time you can abort the script file by selecting
  160. 'Abort Execution'. You may also invoke a script from a function key if
  161. the first character of the function key definition is the KEYSCRIPT
  162. character (e.g., define F5 as "~df1:foo.script").
  163.  
  164. During the time script file is running the terminal emulation is still
  165. active and you may type simulataneous to the script file. This may be
  166. desired if your script file is WAITing for a string or is DELAYing for
  167. a period of time etc.
  168.  
  169. Initialization and Script file Commands:
  170. ----------------------------------------
  171. #   Commented line               (INIT,SCRIPT)
  172.    Format:
  173.    # This line is a comment
  174. ------------------------------------------------------------
  175. APPCUR   Set the application cursor mode         (INIT,SCRIPT)
  176.    Format:
  177.    APPCUR   ON/OFF or YES/NO
  178. ------------------------------------------------------------
  179. ASCII_SEND Send an ascii file to the host.      (SCRIPT)
  180.    Format:
  181.    (same format as CAPTURE)
  182. ------------------------------------------------------------
  183. BACKGROUND Define a background color         (INIT)
  184.    Format:
  185.    BACKGROUND hex      three digit hex number
  186.    Example:
  187.    BACKGROUND F00      bright red background
  188. ------------------------------------------------------------
  189. BAUD    Set baud rate               (INIT,SCRIPT)
  190.    Format:
  191.    BAUD rate      Sets the baud rate for send/receive
  192.    Example:
  193.    BAUD 2400      Sets the baud rate at 2400 baud
  194. ------------------------------------------------------------
  195. BEEP   Beep at the console            (SCRIPT)
  196.    Format:
  197.    BEEP
  198. ------------------------------------------------------------
  199. BOLD    Define a color for bold            (INIT)
  200.    Format:
  201.    (same as BACKGROUND)
  202. ------------------------------------------------------------
  203. BREAK   Set the break time (for an SB command)      (INIT,SCRIPT)
  204.    Format:
  205.    BREAK value      Value is in micro-seconds
  206.    Example:
  207.    BREAK 750000
  208. ------------------------------------------------------------
  209. BUFFER    Set transmission buffer size         (INIT)
  210.    Format:
  211.    BUFFER n      Number of bytes to buffer
  212.    Example:
  213.    BUFFER 512
  214. ------------------------------------------------------------
  215. CAPTURE   To start/stop ascii file capture.      (SCRIPT)
  216.    Format:
  217.    CAPTURE   file      Start ascii capturing
  218.    CAPTURE         End ascii capturing
  219. ------------------------------------------------------------
  220. CD    To change the local directory         (SCRIPT)
  221.    Format:
  222.    CD   newdir      set a new directory for file transfers
  223.    Example:
  224.    CD   DF1:foo/bar   set the directory as specified
  225. ------------------------------------------------------------
  226. CONVERT   Tell KERMIT whether or not to convert filenames   (INIT,SCRIPT)
  227.    Format:
  228.    CONVERT   ON/OFF or YES/NO
  229.    Example:
  230.    CONVERT   ON      Filenames will be down cased
  231. ------------------------------------------------------------
  232. CURSOR    Define a color for the cursor         (INIT)
  233.    Format:
  234.    (same as BACKGROUND)
  235. ------------------------------------------------------------
  236. DELAY    Suspends script file for a specified time   (SCRIPT)
  237.    Format:        
  238.         DELAY    n      Suspends execution for n seconds
  239.    Example:
  240.    DELAY   2      Suspends for 2 seconds
  241. ------------------------------------------------------------
  242. DEPTH    Define the depth of the window/screen      (INIT)
  243.    Format:
  244.    DEPTH n      Number of planes in window/screen
  245.    Example:
  246.    DEPTH 1      Minimum depth
  247.    DEPTH 2      Same as Workbench
  248. ------------------------------------------------------------
  249. ECHO   Turn on/off local echo            (INIT,SCRIPT)
  250.    Format:
  251.    ECHO   ON/OFF or YES/NO
  252.    Example:
  253.    ECHO   ON      Half duplex mode
  254. ------------------------------------------------------------
  255. EXIT   Ends execution of the current script file.   (INIT,SCRIPT)
  256.    Format:
  257.    EXIT         Exit the current script/init file
  258.    EXIT VT100      Exit vt100 program (from SCRIPT only)
  259.    EXIT newscript      Exit this file and start up newscript
  260.    Example:
  261.    EXIT DF1:FOO.BAR   Exit the current file and start FOO.BAR
  262. ------------------------------------------------------------
  263. F   Define a function key            (INIT,SCRIPT)
  264.    Format:
  265.    F n string      Define Function key n to be string
  266.    Example:            (see SEND for string format)
  267.    F 1 "dir^M"      Define F1 is the string dir<cr>
  268.    F 11 "help"      Define Shifted F1 as the string help
  269.    F 20 ^C         Define Shifted F10 as a control-C
  270. ------------------------------------------------------------
  271. FOREGROUND Define a color for the foreground      (INIT)
  272.    Format:
  273.    (same as BACKGROUND)
  274. ------------------------------------------------------------
  275. GOTO   Jumps to a different part of the script file.   (SCRIPT)
  276.    Format:
  277.    GOTO label      Jumps to a line beginning with label:
  278.             Jumps may be forward or backward.
  279.    Example:
  280.    FOO:         Sets up a label
  281.    ...
  282.    GOTO FOO      Jumps to FOO
  283. ------------------------------------------------------------
  284. INTERLACE Turn on/off interlace            (INIT)
  285.    Format:
  286.    INTERLACE ON/OFF or YES/NO
  287.    Example:
  288.    INTERLACE ON      Use interlacing
  289. ------------------------------------------------------------
  290. KB     Send a BYE packet to a host KERMIT server.   (SCRIPT)
  291.    Format:
  292.    KB          Shut down server.
  293. ------------------------------------------------------------
  294. KEYSCRIPT Define a new keyscript character      (INIT,SCRIPT)
  295.    Format:
  296.    KEYSCRIPT hex      New character in hex
  297.    Example:
  298.    KEYSCRIPT 7E      Use "~" as the new character
  299. ------------------------------------------------------------
  300. KG     Gets files from host.            (SCRIPT)
  301.    Format:
  302.    (same format as KS)    Get from server
  303. ------------------------------------------------------------
  304. KR     Receives a file from kermit host.      (SCRIPT)
  305.    Format:
  306.    (same format as KS)    Not from a server
  307. ------------------------------------------------------------
  308. KS     Sends files via kermit to the host.      (SCRIPT)
  309.    Format:
  310.    KS file         Send one file
  311.    KS file1,file2,...   Send multiple files
  312.    KS file1,file2,...,$   Send multiple files and shut down server
  313.    Example:
  314.    KS foo.bar      sends foo.bar (note no quoting is used)
  315.    KS foo1,foo2,foo3   sends three files
  316.    KS foo1,foo2,foo3,$   sends three files and shuts down server
  317. ------------------------------------------------------------
  318. LINES   Define number of lines in the window      (INIT)
  319.    Format:
  320.    LINES n
  321.    Example:
  322.    LINES 24      Maximum for non-interlace
  323.    LINES 48      Maximum for interlaced
  324. ------------------------------------------------------------
  325. MODE   Set a transfer mode for KERMIT to use      (INIT,SCRIPT)
  326.    Format:
  327.    MODE type      type of transfers to perform
  328.    Example:
  329.    MODE IMAGE      image mode transfers
  330.    MODE CRLF      <CR><LF> text transfers (VMS Kermit).
  331. ------------------------------------------------------------
  332. NUMKEY   Numeric keypad mode            (INIT,SCRIPT)
  333.    Format:
  334.    NUMKEY   ON/OFF or YES/NO
  335.    Example:
  336.    NUMKEY   ON      Keypad is pure numbers
  337. ------------------------------------------------------------
  338. ON   Peforms a command every time string is received   (SCRIPT)
  339.    Format:
  340.         ON      "string"  cmd   Execute cmd when string is received.
  341.             Only one ON string may be installed at a
  342.             time.
  343.  
  344.               If cmd is a GOTO and we were previously
  345.             WAITing for a string the WAIT is aborted and
  346.             execution resumes at the new label.
  347.  
  348.                        If cmd is not SEND and we were previously
  349.             DELAYing, then the DELAY is aborted and the
  350.             cmd is executed, followed by the next command
  351.             after the DELAY.
  352.  
  353.             If cmd is a SEND and we were previously
  354.             DELAYing, then the DELAY is continued.
  355.    Example:
  356.         ON  "LOSS CARRIER" GOTO RESTART
  357.             If modem drops carrier, try to redial
  358.         ON  "--more--" SEND " "
  359.             Send a space every time --more-- is received
  360. ------------------------------------------------------------
  361. PARITY   Sets the parity               (INIT,SCRIPT)
  362.    Format:
  363.    PARITY   type      Set the parity type
  364.    Example:
  365.    PARITY   NONE      no parity
  366.    PARITY   MARK      mark parity
  367.    PARITY   SPACE      space parity
  368.    PARITY   ODD      odd parity
  369.    PARITY   EVEN      even parity
  370. ------------------------------------------------------------
  371. SB   Sends a break character to the host      (SCRIPT)
  372.    Format:         Note that any pending character to send
  373.    SB            is aborted by this call
  374. ------------------------------------------------------------
  375. SCREEN   Define the screen type            (INIT)
  376.    Format:
  377.    SCREEN type      type of screen to use
  378.    Example:
  379.    SCREEN WORKBENCH   use the workbench screen
  380.    SCREEN CUSTOM      use a custom screen
  381. ------------------------------------------------------------
  382. SEND    Sends a string or character to the host.   (SCRIPT)
  383.    Format:
  384.    SEND    "string"   Sends a string to the host. Beginning and
  385.             ending double quotes (") are required. A
  386.             carat (^) may be used to send control chars.
  387.             Two carats transmits a carat character.
  388.         SEND    chr              Sends a single character.
  389.         SEND    ^chr             Sends a single control character. The chr
  390.             is NOT case sensitve
  391.    Example:
  392.    SEND   "mail"      Send the string mail
  393.    SEND    "dir^M"      Send the string dir followed by a <CR>
  394.    SEND   a      Send the letter a
  395.    SEND   ^C      Send a control C
  396.    SEND   "abc^^def"   Send the string abc^def
  397.    SEND   ^^      Send a control-uparrow
  398.    SEND   "      Send the '"' character
  399. ------------------------------------------------------------
  400. SHORTCUT set a new shortcut command key          (INIT)
  401.    Format:
  402.    SHORTCUT cmd key        Sets key "key" to be the shortcut key for
  403.                                 script command "cmd".  A null key will
  404.                                 cause no shortcut to be available for this
  405.                                 command (menu-option).  Cmd may be one of
  406.                                 the following:
  407.            >> File items:   <<
  408.     CAP     - ascii capture on/off     ASC     - ascii send
  409.     XR      - xmodem receive file      XS      - xmodem send file
  410.     KG      - kermit get file          KR      - kermit receive file
  411.     KS      - kermit send file         KB      - kermit bye (for server)
  412.            >> Comm items:   <<
  413.     300     - Set Baud 300             1200    - Set Baud 1200
  414.     2400    - Set Baud 2400            4800    - Set Baud 4800
  415.     9600    - Set Baud 9600            NONE    - Set Parity none
  416.     MARK    - Set Parity mark          SPACE   - Set Parity space
  417.     EVEN    - Set Parity even          ODD     - Set Parity odd
  418.     IMAGE   - KERMIT transfer mode     TEXT    - KERMIT transfer mode
  419.     CONVERT - KERMIT transfer mode
  420.            >> Script items: <<
  421.     EXECUTE - execute macro            ABORT   - abort macro
  422.            >> Util items:   <<
  423.     SB      - send break               HANG    - hang up
  424.     CD      - change directory         CLEAR   - clear screen
  425.     ECH     - turn echo on or off      WRAP    - turn wrap on or off
  426.     NUMKEY  - turn numeric kpad on/off APP     - turn app. cursor on/off
  427.     CON     - convert bs to del        SWAP    - Swap BS and DEL
  428.  
  429.    Example:
  430.    SHORTCUT ASC Q          set Right-Amiga-Q to be the shortcut for
  431.                                 ASCII_SEND.
  432.    SHORTCUT XS             removes the shortcut key for sending via
  433.                                 XMODEM protocol
  434. ------------------------------------------------------------
  435. SWAP    Swap the meanings of backspace and delete keys   (INIT,SCRIPT)
  436.    Format:
  437.    SWAP ON/OFF or YES/NO
  438.    Example:
  439.    SWAP NO      Use standard definitions
  440. ------------------------------------------------------------
  441. VOLUME   Set the BELL volume            (INIT,SCRIPT  *PH*)
  442.    Format:
  443.    VOLUME n
  444.    Example:
  445.    VOLUME 0      Use a visual bell
  446.    VOLUME 64      Use a loud audible bell
  447. ------------------------------------------------------------
  448. WAIT    Suspends until a certain string is received.   (SCRIPT)
  449.    Format:
  450.    WAIT   "string"   Same rules for string as SEND
  451.    WAIT         Enter an endless wait. Usually used after
  452.             some "ON" commands have been set up. Can
  453.             still be aborted via the script menu.
  454.    Example:
  455.         WAIT    "User:"       Waits for the string User:
  456. ------------------------------------------------------------
  457. WBCOLORS Force usage of workbench colors      (INIT)
  458.    Format:
  459.    WBCOLORS ON/OFF or YES/NO
  460.    Example:
  461.    WBCOLORS YES      Workbebch colors will be used for all
  462. ------------------------------------------------------------
  463. WRAP   Set long line wrapping            (INIT,SCRIPT)
  464.    Format:
  465.    WRAP   ON/OFF or YES/NO
  466.    Example:
  467.    WRAP   ON      Long lines will wrap
  468. ------------------------------------------------------------
  469. XR     Receives a file via XMODEM.         (SCRIPT)
  470.    Format:
  471.    (same format as KS)
  472. ------------------------------------------------------------
  473. XS     Sends a file via XMODEM.         (SCRIPT)
  474.    Format:
  475.    (same format as KS)
  476. ------------------------------------------------------------
  477.  
  478.  
  479. ----------------------------
  480. Initialization file example:
  481. ----------------------------
  482.  
  483. #####################################################################
  484. #
  485. #   VT100 sample initialization file
  486. #       v2.7 870825 ACS
  487. #
  488. # Hash mark at the beginning of a line denotes a comment.
  489. # White space (space(s) or tab(s)) delimit fields.
  490. # Case ignored except for function key bindings.
  491. #
  492. # All items in this file overide variables of the same name in VT100.C
  493. # (all variables in vt100.c have a "p_" prepended to them)
  494. #
  495. #####################################################################
  496. #
  497. APPCUR      ON      # Application keypad mode is being used
  498. BACKGROUND   000      # Colors are in hex RGB from 000 to FFF
  499. BAUD      2400      # Anything after required fields is ignored
  500. BOLD      a00      # Color for bold highlighting (in custom)
  501. BREAK      750000      # Break time in micro-seconds
  502. BUFFER      512      # 512 <= Input buffer size <= 2048
  503. CONVERT      ON      # KERMIT should downcase host names
  504. CURSOR      00a      # Color for cursor (in custom screen)
  505. DEPTH      1      # number of bit planes to use (1 or 2)
  506. ECHO      OFF      # Full duplex mode in use
  507. FOREGROUND   950      # Colors are only used on the custom screen
  508. INTERLACE   ON      # ON for CUSTOM or interlaced workbench
  509. KEYSCRIPT   7E      # Hex value for script introducer
  510. LINES      48      # normal <= 24 interlaced <= 48
  511. MODE      CRLF      # IMAGE or CRLF (for KERMIT transfers)
  512. NUMKEY      ON      # The keypad should be numeric
  513. PARITY      NONE      # NONE (= 8 bit), MARK, SPACE, ODD or EVEN
  514. SCREEN      CUSTOM      # may be CUSTOM or WORKBENCH
  515. SWAP      OFF      # Don't Swap the Back-space and Delete keys
  516. VOLUME      64      # Beep Volume (0 = Visual Beep)
  517. WBCOLORS   YES      # ignore custom colors and use defaults
  518. WRAP      OFF      # Auto wrap ON or OFF
  519. #   Remove the shortcut key for the CD command.  No comment on next line
  520. # as it will be taken as the shortcut key.
  521. SHORTCUT        CD
  522. #
  523. # Function bindings (strings to type when any of F1 - F10 are pressed)
  524. #   f <num>      = function key
  525. #   f <num>+10   = shifted function key
  526. #
  527. # The string specified must be the same format as the SEND command:
  528. #   ^   = control next character
  529. #   ^^   = up arrow
  530. #
  531. # Sample control characters:
  532. #   ^[   = escape   ^M   = carriage return
  533. #   ^J   = line feed   ^L   = form feed
  534. #
  535. # If the first character of the string is a script introducer
  536. # (KEYSCRIPT) then the string is interpreted as a script filename
  537. # to be executed when the key is pressed.
  538. #
  539. # Examples of bindings:
  540. #
  541. f 1   "^[OP"         # f1-f4 = PF1 - PF4 on a VT100
  542. f 2   "^[OQ"
  543. f 3   "^[OR"
  544. f 4   "^[OS"
  545. #
  546. # f5,6,7 = scripts to execute (assuming that KEYSCRIPT = '~' = 0x7E)
  547. #
  548. f 5   "~df1:vt100_source/dialwork.script"
  549. f 6   "~df1:vt100_source/sendvt100.script"
  550. f 7   "~df1:vt100_source/getpics.script"
  551. #
  552. f 8   "MAIL^M"      # Reads my mail (note embedded <CR>)
  553. f 9   "NOTE^M"      # Reads conferences
  554. f 11    "ATdt415-595-2479^M"    # dials the FAUG BBS
  555. #
  556. # all done with init, now execute script as startup sequence
  557. #
  558. exit df1:vt100_source/dialwork.script
  559.  
  560. --------------------
  561. Script file example:
  562. --------------------
  563.  
  564. ###################################################################
  565. # Script to dial work (dialwork.script)
  566. #   v2.6   870222   DBW
  567. ###################################################################
  568. #
  569. # Make sure that we have all the parameters we want
  570. #
  571.    DELAY   2
  572.    BAUD   2400
  573.    PARITY   NONE
  574.    MODE   CRLF
  575.    BREAK   750000
  576.    SB
  577. #
  578. # First get the modem's attention:
  579. #
  580. Start:
  581.    DELAY 1
  582.    ON "Ready" GOTO Dial
  583.    SEND ^B
  584.    DELAY 2
  585.    GOTO Start
  586. #
  587. # Now dial the 2400 baud line to work:
  588. #
  589. Dial:
  590.    ON "Attached" GOTO Login
  591.    SEND "$2400!"
  592.    DELAY 30
  593.    GOTO Start
  594. #
  595. # We got attached, so keep hitting return until the Gandalf terminal
  596. # handler wakes up:
  597. #
  598. Login:
  599.    ON "enter" GOTO Gandalf
  600.    DELAY 1
  601.    SEND ^M
  602.    GOTO Login
  603. #
  604. # Now connect from the Gandalf to the terminal server (ts2):
  605. # (when it asks for a password I need to type the password 
  606. # manually here)
  607. #
  608. Gandalf:
  609.    DELAY 2
  610.    SEND "ts2^M"
  611.    WAIT "class start"
  612. #
  613. # Keep sending <CR>'s until the LAT prompts for a username:
  614. #
  615. WaitLat:
  616.    DELAY 2
  617.    ON "username>" GOTO Lat
  618.    SEND ^M
  619.    GOTO WaitLat
  620. #
  621. # Tell the LAT that it's me, and connect to the "cookie cluster"
  622. # (my host systems). Tell the cluster my user name.
  623. # (when it asks for a password I need to type the password
  624. # manually here)
  625. #
  626. Lat:
  627.    SEND "wecker^M"
  628.    DELAY 1
  629.    SEND "connect cookie^M"
  630.    WAIT "Username:"
  631.    SEND "WECKER^M"
  632.    WAIT "at home"
  633.    SEND "^M^Mn^M"
  634. #
  635. # Got through all the LOGIN garbage, so let's do some work.
  636. #
  637.    WAIT "$ "
  638. #
  639. # All done so stop:
  640. #
  641.    EXIT
  642.